<template>


        <div class="super_container">

                <myheader :total_price='total' :count='count'></myheader>

                <!-- Home -->



                <!-- Boxes -->
                <div class="tlinks">Collect from <a href="http://www.cssmoban.com/" title="网站模板">网站模板</a></div>
                <!-- Categories -->

                <div class="categories">
                    <div class="section_container">
                        <div class="container">
                            <div class="row">
                                <div class="col text-center">
                                    <div class="categories_list_container">
                                        <ul class="categories_list d-flex flex-row align-items-center justify-content-start">
                                            <li><a href="categories.html">new arrivals</a></li>
                                            <li><a href="categories.html">recommended</a></li>
                                            <li><a href="categories.html">best sellers</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Products -->

                <div class="products">
                    <div class="section_container">
                        <div class="container">
                            <div class="row">
                                <div class="col">
                                    <div class="products_container grid">

                                        <!-- Product -->
                                        <div class="product grid-item hot" v-for="i in cartlist">
                                            <div class="product_inner">
                                                <div class="product_image">
                                                    <img style="height: 300px; width: 220px;" :src="base_url+'/static/upload/'+i[2]" alt="">

                                                    <div class="product_tag">hot</div>
                                                </div>
                                                <div class="product_content text-center" >
                                                    <div class="product_title">

                                                    	<a :href="'product?id='+i[1]">
                                                    		{{ i[0] }}
                                                    	</a>
                                                    	<!--<router-link :to="{name:'product',params: {proId:i[1]}}">
                                                    		{{i[0]}}
                                                    	</router-link>-->
                                                        <div class="product_price">${{ i[3] }}</div>

                                                    </div>
                                                    
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Footer -->

                <myfooter></myfooter>
            </div>
</template>



      <script>


        import myheader from './header.vue'
        import myfooter from './footer.vue'
        import Cookies from 'js-cookie'



      export default {
        data () {
          return {
               count:0,
			  total:0,
            msg: "这是一个变量",
            dataList:'',
            datalist:[],
            cartlist:{},
            clicked:0,
            upath: '',
          result: '',
          uping:0
          }
        },

        components: {
        'myheader':myheader,
        'myfooter':myfooter
        },
        
        
        
        mounted:function(){
            this.common.get_menu();
    
			
			
			
			let url = this.base_url+'/Get_search'
			this.axios.get(url,{
				params:{
					goods:this.$route.params.userId
				}
			}).then(res => {
               
                this.cartlist = res.data.goods
                
			})

        },
        
        
        
        methods:{
            changetest(index){
                this.clicked = index;
            },
  
            
    
            
            
        }
        
        
      }


      </script>

      <style>



      </style>
